package systemRouter

import (
	"github.com/Sir-yuChen/funAnalyse/api"
	"github.com/Sir-yuChen/funAnalyse/global"
	"github.com/Sir-yuChen/funAnalyse/middleware"
	"github.com/gin-gonic/gin"
)

type SystemMoniterRouter struct{}

func (co *SystemMoniterRouter) SystemMoniterApiRouter(Router *gin.RouterGroup) {
	moniterRouter := Router.Group(global.ROUTER_GROUP_SYSTEM).Use(middleware.JWTAuth()).Use(middleware.CasbinMiddleware())
	api := api.ApiGroupApp.SystemApiGroup.SysMoniterController
	{
		moniterRouter.GET(global.API_SYS_MONITER.BasePath, middleware.CheckApiResourcesMiddleware(global.API_SYS_MONITER), api.SysMoniter)
	}
}
